@import url('./theme/dark.scss');
@import url('./theme/light.scss');
* {
  // cursor: default;
  user-select: none;
  box-sizing: border-box;
}
body {
  box-sizing: border-box;
  background-color: var(--body-bg-color, #fff);
  color: var(--font-color, #333);
  font-size: 14px;
  overflow: hidden;
  position: relative;
}
button {
  color: var(--font-color, #333);
}
// Diffusion animation
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
@media (prefers-color-scheme: dark) {
  ::view-transition-old(root) {
    z-index: 1;
  }
  ::view-transition-new(root) {
    z-index: 999;
  }
}
@media (prefers-color-scheme: light) {
  ::view-transition-old(root) {
    z-index: 999;
  }
  ::view-transition-new(root) {
    z-index: 1;
  }
}
.drag,
.drag-js {
  -webkit-app-region: drag;
}
.no-drag,
.no-drag-js {
  -webkit-app-region: no-drag;
}

.color-even {
  background-color: var(--playlist-item-even-color);
}

img {
  pointer-events: none;
}

ul {
  list-style: none;
  padding: 0px;
  margin: 0px;
}
a {
  color: var(--font-color);
  text-decoration: none;
}
button {
  border: none;
  outline-style: none;
  margin: 0;
  padding: 0;
  background-color: transparent;
}
.disabled {
  color: rgba(0, 0, 0, 0.25);
}
#app {
  height: 100vh;
  width: 100vw;
  position: relative;
}

.text-overflow {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s {
  color: #0c73c2;
}
.bi-heart-fill {
  color: variables.$primaryColor;
}
.scrollbar {
  height: 100%;
  overflow: auto;
  &:hover {
    &::-webkit-scrollbar-thumb {
      background-color: var(--scrollbar-thumb-color);
    }
  }
  &::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  &::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 3px;
    &:hover {
      background-color: var(--scrollbar-thumb-color-hover);
    }
  }
  &-always {
    overflow: auto;
    height: 100%;

    &::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }

    &::-webkit-scrollbar-thumb {
      border-radius: 3px;
      background-color: var(--scrollbar-thumb-color);
      &:hover {
        background-color: var(--scrollbar-thumb-color-hover);
      }
    }
  }
}

.no-padding {
  padding: 0 !important;
}
.n-modal-mask {
  backdrop-filter: blur(2px);
  background-color: rgba(225, 225, 225, 0.2);
}
.app-bottom-space {
  height: variables.$appBottomSpace !important;
}
.menu-bottom-space {
  height: variables.$menuBottomSpace;
}
.list-bottom-space {
  height: variables.$listBottomSpace;
}

// 底部message
.n-message-container.n-message-container--bottom-right {
  bottom: 80px;
}

//
.slide-up-enter-active,
.slide-up-leave-active {
  transition: transform 300ms cubic-bezier(0.76, 0, 0.24, 1);
}

.slide-up-enter-from,
.slide-up-leave-to {
  transform: translateY(100%);
}
// fade and slide-down
.fade-slide-down-enter-active,
.fade-slide-down-leave-active {
  transition: opacity, transform 300ms cubic-bezier(0.76, 0, 0.24, 1);
}
.fade-slide-down-enter-from,
.fade-slide-down-leave-to {
  opacity: 0;
  transform: translateY(-100%);
}
// scale
.scale-enter-active,
.scale-leave-active {
  transition: all 0.2s cubic-bezier(0.76, 0, 0.24, 1);
}

.scale-enter-from,
.scale-leave-to {
  opacity: 0;
  transform: scale(0.9);
}

// vue-slider样式
.vue-slider {
  .vue-slider-dot-handle {
    cursor: pointer;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0.5px 0.5px 2px 1px rgba(0, 0, 0, 0.12);
    visibility: hidden;
  }

  .vue-slider-rail {
    background-color: var(--player-track-color);
  }

  .vue-slider-process {
    // 蓝色渐变
    // background-image: linear-gradient(90deg, #74b9ff, #0984e3);
    // 橙色渐变
    background-image: linear-gradient(90deg, #feca57, #ff6b6b);
  }

  &:hover {
    .vue-slider-dot-handle {
      visibility: visible;
    }
  }

  &:active {
    .vue-slider-dot-handle {
      visibility: visible;
    }
  }
}
// 文本溢出滚动样式
.text-scroll > * {
  animation: var(--words-roll-time, 5s) textScroll linear;
}

@keyframes textScroll {
  from {
    transform: translateX(0%);
  }

  to {
    transform: translateX(calc(-100% - var(--text-gap, 10px)));
  }
}

/* https://learn.microsoft.com/zh-cn/windows/apps/design/style/segoe-fluent-icons-font */
